package mest.service.cxj.impl;

import mest.VO.cxj.CostOrderVO;
import mest.dao.cxj.CostOrderDao;
import mest.entity.costorder;
import mest.service.cxj.CostOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CostOrderServiceImpl implements CostOrderService {

    @Resource
    private CostOrderDao costOrderDao;


    @Override
    public int insertCostOrder(costorder co,String theirDb) {
        return costOrderDao.insertCostOrder(co,theirDb);
    }

    @Override
    public int modifyCostOrder(costorder co,String theirDb) {
        return costOrderDao.modifyCostOrder(co,theirDb);
    }

    @Override
    public List<CostOrderVO> selectAllCostOrder(Integer page, Integer limit, String content, String theirDb) {
        return costOrderDao.selectAllCostOrder((page-1)* limit,limit,content,theirDb);
    }

    @Override
    public Integer selectCountCostOrder(String content,String theirDb) {
        return costOrderDao.selectCountCostOrder(content,theirDb);
    }

    @Override
    public int deleteCostOrder(Integer id,String theirDb) {
        return costOrderDao.deleteCostOrder(id,theirDb);
    }
}
